package com.hakim.wfb.admin.service.api;

import com.hakim.wfb.admin.params.admin.GetAdminMenuParam;
import com.hakim.wfb.admin.params.admin.LoginParam;
import com.hakim.wfb.admin.params.admin.LogoutParam;
import com.hakim.wfb.admin.result.admin.AdminMenuView;
import com.hkfs.fundamental.api.data.ListResultEx;
import com.hkfs.fundamental.api.data.ObjectResultEx;
import com.hkfs.fundamental.api.data.ResultEx;
import com.hkfs.fundamental.api.params.SessionIdentity;

/**
 * 后台用户动作，登录、登出等
 */
public interface SystemUserActionService {
    /**
     * 用户登录
     *
     * @param param
     * @return
     */
    public ObjectResultEx<SessionIdentity> login(LoginParam param);

    /**
     * 用户登出
     *
     * @param param
     * @return
     */
    public ResultEx logout(LogoutParam param);

    /**
     * 获取用户菜单
     *
     * @param param
     * @return
     */
    public ListResultEx<AdminMenuView> getUserMenu(GetAdminMenuParam param);

}
